package ro.msg.quiz.domain;

//AUTHOR: Marco,Razvan,Elod

//There are 3 classes that extend Question
public abstract class Question {

    private int id;
    private String text;

    public Question(int id, String text) {
	this.setId(id);
	this.setText(text);
    }

    /**
     * @return the id
     */
    public int getId() {
	return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(int id) {
	this.id = id;
    }

    /**
     * @return the text
     */
    public String getText() {
	return text;
    }

    /**
     * @param text
     *            the text to set
     */
    public void setText(String text) {
	this.text = text;
    }

    public abstract QuestionType getType();

}
